import request from '@/utils/request'
export default{
    //6、提交借款审批
    approvalBorrowInfo(approval){
        return request({
            // baseURL:
            url:`/admin/core/borrowInfo/approval`,
            method:'POST',
            data: approval
        })
    },
     //5、查询借款详情
     getBorrowDetail(id){
        return request({
            // baseURL:
            url:`/admin/core/borrowInfo/detail/${id}`,
            method:'GET'
        })
    },
    //4、查询借款申请列表
    listBorrowInfos(){
        return request({
            // baseURL:
            url:`/admin/core/borrowInfo/list`,
            method:'GET'
        })
    },
    //1、分页查询借款人列表
    listPage(pageNum,pageSize,keyword){
        return request({
            // baseURL:
            url:`/admin/core/borrower/list/${pageNum}/${pageSize}`,
            params:{keyword},
            method:'GET'
        })
    },
    //2、查询借款人详情
    getBorrowerDetail(id){
        return request({
            // baseURL:
            url:`/admin/core/borrower/detail/${id}`,
            method:'GET'
        })
    },
    //3、提交借款人审批
    approval(approvalForm){
        return request({
            // baseURL:
            url:`/admin/core/borrower/approval`,
            method:'PUT',
            data: approvalForm
        })
    },

}